package com.smsc.headend.task.engine.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smsc.headend.module.report.entity.LogScheduleTask;
import com.smsc.headend.task.engine.mapper.provider.LogScheduleTaskProvider;
import com.smsc.headend.task.engine.po.LogScheduleTaskCountPo;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;

public interface LogScheduleTaskMapper extends BaseMapper<LogScheduleTask> {
    @UpdateProvider(value = LogScheduleTaskProvider.class, method = "optimisticUpdate")
    @ResultType(Boolean.class)
    int optimisticUpdate(LogScheduleTaskCountPo po);
}
